package com.whw.springboot.walk.mapper;

import com.whw.springboot.walk.entity.Lesson;
import com.whw.springboot.walk.entity.LessonNumber;
import com.whw.springboot.walk.entity.User;

import java.util.List;

public interface LessonMapper {

    int addLesson(Lesson lesson);

    int deleteLessonByPrimaryKey(String lessonId);

    List<Lesson> selectAllLessonName();

    List<Lesson> selectAllTeacher();

    Lesson selectTeacherByLessonName(String lessonId);

    Lesson selectLessonNameByTeacher(String lessonTeacher);

    int updateLessonPersonNumByLessonName(LessonNumber lessonNumber);

    List<Lesson> selectLessonByLessonId(String lessonId);

    int selectLessonIdByLessonName(String lessonName);

    int updateLessonPersonNumByPK(String lessonId,String lessonPersonNum);
}
